using Game.Main.Model;

namespace Game.Component
{
	public class FaceLiftMachineBedItem : BaseItem
	{
		public override void Init(ItemArchiveData data)
		{
			base.Init(data);
		}

		public override bool AttachItem(BaseItem item, DepthType depthType, AttachType attachType, bool updatePosition)
		{
			if (!updatePosition && parentItem != null && parentItem.itemData.scriptType == 67 && item.itemData.scriptType == 1)
			{
				CharacterItem characterItem = (CharacterItem)item;
				FaceLiftMachineItem faceLiftMachineItem = (FaceLiftMachineItem)parentItem;
				faceLiftMachineItem.InitFace(characterItem.GetEyeId(), characterItem.GetNoseId(), characterItem.GetBrowId(), characterItem.GetMouthId(), characterItem.GetFeatureId());
				faceLiftMachineItem.InitColor(characterItem.GetBodyColor());
			}
			return base.AttachItem(item, depthType, attachType, updatePosition);
		}
	}
}
